const util = require('../../../utils/util.js');
const api = require('../../../config/api.js');
Page({

  /**
   * 页面的初始数据
   */
  data: {
    userCards: []
  },

  selectCards: function() {
    let that = this;
    util.request(api.SelectCardsUrl).then(function(res) {
      if (res.success) {
        that.setData({
          userCards: res.data
        });
      }
    });
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function() {
    this.selectCards();
  }


})